<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="renderer" content="webkit">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>代理商查询系统</title>
<link rel="stylesheet" type="text/css" href="<?php echo CSS_PATH; ?>admin/style.css" />
<!--[if IE 6]>
<script type="text/javascript" src="<?php echo JS_PATH; ?>DD_belatedPNG.js" ></script>
<script type="text/javascript">
DD_belatedPNG.fix('*');
</script>
<![endif]-->
<script type="text/javascript" src="<?php echo JS_PATH; ?>jquery-1.7.2.min.js"></script>
</head>
<body>
<div class="header">
    <div class="logo fl"><img src="<?php echo IMG_PATH; ?>admin/logo.png" width="160" height="36" alt=""  style="margin-top:-15px;" /></div>
    <div class="menu-box">
        <div class="menu-left-bg"></div>
        <div class="menu fl">
            <a href="/index.php?m=daili&amp;c=index&amp;a=index&amp;pid=107" class="hover" data="/index.php?m=daili&amp;c=index&amp;a=index&amp;pid=107">代理商统计</a>
        </div>
        <div class="menu-right-bg"></div>
    </div>
    <div class="clear"></div>
    <div class="welcome">
        <a href="javascript:void(0)">欢迎您 <?php echo session('DAILI_UNAME'); ?></a>|
        <a href="<?php echo U('Daili/agency/changepwd'); ?>" target="mainFrame">更改密码</a>|
        <a href="<?php echo __APP__ ?>" target="_blank">网站前台</a>|
        <a href="<?php echo U('Daili/Public/logout'); ?>">退出系统</a>|
    </div>
</div>
<div class="side">
    <div class="head">
        <img src="<?php echo IMG_PATH; ?>admin/head.jpg" width="43" height="43" alt="" />
    </div>
    <h3><img src="<?php echo IMG_PATH; ?>admin/ico_6.png" />代理商</h3>
    <ul>
       <li><a href='#' name='' class='n12 z_side' data='/index.php?m=daili&c=agency&a=daili'>我的下级代理</a></li> 
       <li><a href='#' name='' class='n12 z_side' data='/index.php?m=daili&c=agency&a=countinfo'>直推商家统计</a></li> 
       <li><a href='#' name='' class='n12 z_side' data='/index.php?m=daili&c=agency&a=dailiinfo'>下级商家统计</a></li> 
    </ul>
</div>
<div id="Container" style="min-width: 1000px;">
    <div class="ico_left"><img src="<?php echo IMG_PATH; ?>admin/ico_8.png" /></div>
    <iframe id="mainFrame" style="min-width: 1000px;" name="mainFrame" frameborder="0" src="" width="100%" height="100%" >
    </iframe>
</div>
<script>
$(".z_side").click(function() {
    $("iframe").attr("src", $(this).attr("data"));
});
if (top.location !== self.location) {
    top.location = self.location;
}
$(".side a[name!='disabled']").eq(0).addClass('hover').click();
//左侧side中的hover 效果
$(function(){
	$(".side li a").click(function(){
		if($(this).hasClass('disabled')) return false;
		$(".side li a").removeClass("hover");
		$(this).addClass("hover");
	});
});
/**
 * 显示和收起后台导航
 */
$(".ico_left").toggle(function(){
			$(".side").animate({left:"-200px"});
			$("#Container").animate({left:"0"});
			$(".welcome").animate({paddingLeft:"10px"});
			$(this).children().attr('src','<?php echo IMG_PATH; ?>admin/ico_8a.png');
		},
		function(){
			$(".side").animate({left:"0px"});
			$("#Container").animate({left:"200px"});
			$(".welcome").animate({paddingLeft:"65px"});
			$(this).children().attr('src','<?php echo IMG_PATH; ?>admin/ico_8.png');
		}
	  );
</script>
</body>
</html>